package cn.micai.base.task;

import org.jetbrains.annotations.NotNull;
import java.util.concurrent.Executor;

/**
 * @Auther: zhaoxinguo
 * @Date: 2018/7/9 17:02
 * @Description: Executor在调用线程中同步地执行所以任务
 */
public class WithinThreadExecutor implements Executor {

    @Override
    public void execute(@NotNull Runnable command) {
        command.run();
    }
}
